import request from "@/utils/request"

// 新增可视化大屏
export function insertVVisualization(data) {
  return request({
    url: "/vVisualization/insertVVisualization",
    method: "post",
    data
  })
}
// 分页查询可视化大屏
export function queryPageVVisualization(data) {
  return request({
    url: "/vVisualization/queryPageVVisualization",
    method: "get",
    params: data
  })
}
// 修改可视化大屏[配置大屏组件模型]
export function updateVVisualization(data) {
  return request({
    url: "/vVisualization/updateVVisualization",
    method: "post",
    data
  })
}
// 查询单个可视化大屏配置
export function queryOnVVisualization(data) {
  return request({
    url: "/vVisualization/queryOnVVisualization",
    method: "get",
    params: data
  })
}
// 删除单个可视化大屏配置
export function deleteVVisualization(data) {
  return request({
    url: "/vVisualization/deleteVVisualization",
    method: "post",
    data
  })
}
// 新增或修改组件设备参数信息接口
export function insertOrUpdateVVisualizationDetail(data) {
  return request({
    url: "/vVisualization/insertOrUpdateVVisualizationDetail",
    method: "post",
    data
  })
}
// 查询下拉框
export function queryAllDeviceList(data) {
  return request({
    url: "/deviceSet/queryAllDeviceList",
    method: "get",
    params: data
  })
}

export function queryParamConfig(data) {
  return request({
    url: "/visShowParam/queryParamConfig",
    method: "get",
    params: data
  })
}
export function queryParamStatusConfig(data) {
  return request({
    url: "/visShowParam/queryParamStatusConfig",
    method: "get",
    params: data
  })
}
